﻿using System;

namespace StatsData.Api.Utils
{
    public static class DateTimeUtils
    {
        public static string ToDefaultStr(DateTime? time)
        {
            if (time == null)
            {
                return string.Empty;
            }

            return time.Value.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}
